/**
 * 
 */
package demo.tellurium.framework;

import org.junit.BeforeClass;
import org.telluriumsource.test.java.TelluriumMockJUnitTestCase;

import demo.util.BaseUtils;
import demo.util.Console;

/**
 * @author Roggie
 * 
 */
public abstract class BaseTelluriumMockJUnitTestCase extends TelluriumMockJUnitTestCase {

    protected static Console console = BaseUtils.getConsole();

    @BeforeClass
    public static void init() {
        // connect server
        TelluriumMockJUnitTestCase.init();

        // load properties
        BaseTelluriumJUnitTestCase.loadProperties();

        // configuration
        BaseTelluriumJUnitTestCase.config();
    }

    public static String getProperty(String key) {
        return BaseTelluriumJUnitTestCase.getProperty(key);
    }

    public static void waitingDelay() {
        BaseTelluriumJUnitTestCase.waitingDelay();
    }

    public static void pauseSec(int seconds) {
        BaseTelluriumJUnitTestCase.pauseSec(seconds);
    }

    public static <T> T cast(Object obj) {
        return BaseTelluriumJUnitTestCase.cast(obj);
    }

    public static void manualBreak() {
        BaseTelluriumJUnitTestCase.manualBreak();
    }
}
